home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 43.zip
/
ANC 15.adf
/
1.Doc
< prev
next >
Wrap
Text File
|
1987-01-01
|
7KB
|
151 lines
?
a? - Amiga special commands
#b? - breakpoint commands
c [COUNT] - display current context of COUNT lines
d? - display commands
e [EXPR] - evaluate a C expression
#f? - frame up and down commands
#g [ADDR [;COMMAND] ] - execute program
#G [ADDR [;COMMAND] ] - execute program without breakpoints
lp - (re)load program file
m? - memory commands
p? - formatted output
q - quit
r [REG = VAL] - display or modify the registers
#s? - single step
u RANGE - unassemble the program
U RANGE - unassemble without symbols
w - toggle to other window
x NAME = MACRO - create a macro
X NAME - display a macro
z - toggle source/assembly mode
= EXPR - display the value of
/STRING - find string in current file
< FILENAME - redirect input from a file
> FILENAME - copy all ouput to a file
>> FILENAME - log commands only to a file
& [CNT] - delays till return or till CNT ticks
a?
acc [out,text,back,prompt] - show/set the command window colors
acd [text,back] - show/set the data window colors
acs [text,back,high,back] - show/set the source window colors
add - display device list
adi - display interrupt list
adl - display library list
adp - display port list
adr - display resource list
ae - toggle command echo flag
am - display memory usage
ax - switch between main and alternate .dbg file
b?
bc ADDR - clear a specific breakpoint in table
bC - clear all breakpoints in table
bd - display breakpoints in table
be EXPR - set expression breakpoint
bm ADDR(!=|==)[VAL] - set memory change breakpoint
br [ADDR] - reset breakpoint counters in table
#bs ADDR [;COND][;COMMAND] - set or modify a breakpoint in table
bt - toggle call trace
bT - toggle source line trace
d?
da - display local addresses
dc - display code addresses
db RANGE - display memory as bytes
dd - display data addresses
df [FILENAME,]RANGE - display file lines
dg - display the value of all globals
dl RANGE - display memory as long words
#ds - display stack backtrace
#dS - display stack with autos
dw RANGE - display memory as words
f?
#fu - set frame to next caller up
#fd - set frame to next caller down
m?
mb ADDR VAL1 VAL2 ... - modify memory as bytes
mc RANGE = ADDR - compare memory
mf RANGE = VAL - fill memory with value
ml ADDR VAL1 VAL2 ... - modify memory as long words
mm RANGE = ADDR - move memory
ms RANGE = VAL1 VAL2 ... - search memory for value
mw ADDR VAL1 VAL2 ... - modify memory as words
p?
p [@FORMAT] [RANGE][,NEXT] - formatted output
where FORMAT is sequence of [COUNT][INDIR][COUNT]DESC
COUNT is a decimal number (defaults to 1)
INDIR is '*' - short indirect pointer
or '#' - long indirect pointer
DESC is:
d (D) - 2-byte (4-byte) decimal
o (O) - 2-byte (4-byte) octal
u (U) - 2-byte (4-byte) unsigned decimal
x (X) - 2-byte (4-byte) hexadecimal
f (F) - single (double) floating point
b[xdo] - byte in hex or (hex, decimal, or octal)
c (C) - character with (without) translation
s (S) - string with (without) translation
p (P) - short (long) pointer
n (N) - output a newline
r (R) - print a name
t (T) - output a tab
"STRING" - output STRING
. - display floats to COUNT significance
+ (-) - advance (reduce) address COUNT bytes
^ - reduce address by size of last item
a (A) - set print address to follow short (long)
pointer chain
s?
#s [;COMMAND] - single step the program # times
#S [;COMMAND] - single step without display
#t [;COMMAND] - single step #times stepping over calls
#T [;COMMAND] - same as 't' but don't display until last
Ctrl-A DSP_INIT
Ctrl-B DSP_REDISPLAY
Ctrl-D DSP_DOWN (down arrow key) Get next command from history.
Ctrl-G DSP_LEFT (left arrow key) Move cursor left one place.
Ctrl-H (back space key) Remove character to left of cursor.
Ctrl-J (return key) Execute command on command line.
Ctrl-K DSP_UP (up arrow key) Get previous command form history.
Ctrl-L DSP_RIGHT (right arrow key) Move cursor right one place.
Ctrl-M (return key) Execute command on command line.
Ctrl-N DSP_ALTUP (Alt-up arrow) Scroll data window contents down.
Ctrl-O DSP_ALTDOWN (Alt-down arrow) Scroll data window contests up.
Ctrl-P DSP_SHALTUP (Shift-Alt-up arrow) Scroll command window up.
Ctrl-R DSP_SHALTDOWN (Shift-Alt-down arrow) Scroll command window down.
Ctrl-T DSP_SHUP (Shift-up arrow) Scroll source window contents down.
Ctrl-U DSP_SHDOWN (Shift-down arrow) Scroll source window contents up.
Ctrl-V DSP_SHLEFT (Shift-left arrow)
Ctrl-W DSP_SHRIGHT (Shift-right arrow)
Ctrl-Y (F10 key) Swap sdb window with program output.
Amiga-arrow_key Move pointer one pixel in direction of arrow.
Amiga-Shift-arrow_key Move pointer many pixels in direction of arrow.
Shift-left arrow Move cursor to beginning of command line.
Shift-right arrow Move cursor to end of command line.
There are several options which can affect the debugger display.
-ssT,B,HT,HB controls the source display. All four numbers
must be present and determine (in order):
text, back ground, highlighted text, highlighted background
-csO,T,B,P controls the command area display as follows:
outline, text, background, prompt
-dsT,B controls the data area display as follows:
text, back ground
-mFILE forces redirection to an input file
Options may be made somewhat permanent by setting the environment variable
SDBOPT to the appropriate values. Try:
set "SDBOPT=cs1,3,2,0 -cd3,2"
FILE.mac used to automatically save and load macros.